package edu.nf.ch03.converter;

import edu.nf.ch03.entity.User;
import edu.nf.ch03.vo.UserVO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

/**
 * @author wangl
 * @date 2025/10/23
 */
@Mapper(componentModel = "spring")
public interface UserConverter {

    @Mappings({
         @Mapping(source = "name", target = "name")
    })
    UserVO toUserVO(User user);
}